using System.Collections.Generic;
using System.Web.Http;
using Medora.Model.Classifiers;
using Medora.Services;

namespace Medora.Web.App_Code
{
    public class ClassifiersController: BaseApiController
    {
        private readonly IService<ScheduleType, ClassifierFilter> _scheduleTypeService;

        public ClassifiersController(IService<ScheduleType, ClassifierFilter> scheduleTypeService)
        {
            _scheduleTypeService = scheduleTypeService;
        }

        [ActionName("GetScheduleTypes")]
        public IEnumerable<ScheduleType> GetScheduleTypes()
        {
            return _scheduleTypeService.Get(null);
        }
    }
}